package com.zzgele.qmzb.api;

import com.alibaba.boot.dubbo.annotation.EnableDubboConfiguration;
import com.zzgele.qmzb.api.core.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//打包成war时需要配置/打包成jar时需要去掉： extends SpringBootServletInitializer
@SpringBootApplication
@EnableTransactionManagement // 开启注解事务管理，等同于xml配置文件中的 <tx:annotation-driven />
@MapperScan(basePackages = "com.zzgele.qmzb.api.**.dao", markerInterface = Mapper.class)
@EnableDubboConfiguration
public class ProviderApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {

        SpringApplication.run(ProviderApplication.class, args);
    }
}

